#include "server.h"

Server::Server( gchar* ip, guint port, gchar* username, gchar* password )
{
    strcpy( this->ip, ip );
    this->port = port;
    if( username ) strcpy( this->username, username );
    if( password ) strcpy( this->password, password );
}

gchar* Server::getIp()
{
    return ip;
}

guint Server::getPort()
{
    return port;
}

gchar* Server::getUsername()
{
    return username;
}

gchar* Server::getPassword()
{
    return password;
}
